$(function () {
    swipertab();
    function swipertab() {
        var mySwiper1 = $('.con-2 .bd .swiper-container').swiper({
            loop: true,
            grabCursor: true,
            paginationClickable: true,
            observeParents:true,
            autoplay:3000
        });
        $('.con-2 .bd .prev').on('click', function(e) {
            e.preventDefault();
            var swiper = $(this).siblings('.con-2 .bd .swiper-container').data('swiper');
            swiper.swipePrev();
        });
        $('.con-2 .bd .next').on('click', function(e) {
            e.preventDefault();
            var swiper = $(this).siblings('.con-2 .bd .swiper-container').data('swiper');
            swiper.swipeNext();
        });
    }
    var navli2 = $('.con-2 .tab2 .nav .navli');
    tab2(navli2);
    function tab2(nav) {
        var index = 0;
        nav.click(function () {
            var contli = $(this).parents('.tab2').find('.content > *');
            nav.removeClass('active');
            contli.removeClass('active');
            index = $(this).index();
            nav.eq(index).addClass('active');
            contli.eq(index).addClass('active');
        })
    }
});

$(function () {
    var mySwiper3 = $('.con-3 .swiper-container').swiper({
        loop: true,
        grabCursor: true,
        paginationClickable: true

    });
    $('.con-3 .prev').on('click', function(e) {
        e.preventDefault()
        var swiper = $(this).siblings('.con-3 .swiper-container').data('swiper');
        swiper.swipePrev();
    });
    $('.con-3 .next').on('click', function(e) {
        e.preventDefault()
        var swiper = $(this).siblings('.con-3 .swiper-container').data('swiper');
        swiper.swipeNext();
    });
})